import http from '@/utils/http'

const NewKeyPerson = {

  /**
   * 关键人信息管理
   * @param {*} params
   * @returns
   */
  // 初始化下拉框列表
  async initValue(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getBasicsdata`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  // 客户关键人列表
  async getCustKeyPersonRelList(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getCustKeyPersonRelList`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  //关键人修改与新增
  async custKeyPersonRel(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/custKeyPersonRel`,
      data: params,
      method: 'POST'
    })
    return result;
  },
}
export default NewKeyPerson
